import 'package:beautiful_demo/common/res.dart';

import 'controller.dart';
import 'package:flutter/material.dart';
import 'widget.dart';
import 'package:flutter_mvc/flutter_mvc.dart';

///description:通讯录
class ChatFriendPage extends BasePage<ChatFriendController>{
   
   @override
   Widget build(BuildContext context){
       return ListView.builder(
         padding: EdgeInsets.only(
             bottom: MediaQuery.of(context).padding.bottom + 60.dp),itemBuilder: (ctx,index){

         final item=c.dataList[index];
         return InkWell(onTap: ()=>c.onItemClick(item),child: Item(item.logo,item.nick,item.phone.toString()));

       },itemCount: c.dataList.length,);
   }
}
